package com.ruoyi.app.service;

import com.ruoyi.app.domain.AppGoods;
import com.ruoyi.app.domain.vo.AppGoodsVo;
import com.ruoyi.app.domain.bo.AppGoodsBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * APP商城商品Service接口
 *
 * @author heike
 * @date 2023-02-28
 */
public interface IAppGoodsService {

    /**
     * 查询APP商城商品
     */
    AppGoodsVo queryById(Long id);

    /**
     * 查询APP商城商品列表
     */
    TableDataInfo<AppGoodsVo> queryPageList(AppGoodsBo bo, PageQuery pageQuery);

    /**
     * 查询APP商城商品列表
     */
    List<AppGoodsVo> queryList(AppGoodsBo bo);

    /**
     * 新增APP商城商品
     */
    Boolean insertByBo(AppGoodsBo bo);

    /**
     * 修改APP商城商品
     */
    Boolean updateByBo(AppGoodsBo bo);

    /**
     * 校验并批量删除APP商城商品信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);


    /**
     * 校验并批量删除APP商城商品信息
     */
    Boolean downWithValidByIds(Collection<Long> ids);
}
